#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/spinlock.h>
#include "Base/lib/bitstring.h"
#include "Base/lib/include/lib.flow.h"
#include "Base/lib/lib.dlt.h"
#include "Base/lib/lib.time.h"
#include "Server/plugins/mpTimeTrigger.h"

void Func(char str[100])
{
  printf("%d\n", sizeof(str));
}


int main() {

//	struct tm tmt;
//	time_t t=getUTCNow();
//	struct tm *pt=localtime(&t);
//
//	memcpy(&tmt,pt,sizeof(struct tm));
//
//	printf("%d-%d-%d\n",tmt.tm_hour,tmt.tm_min,tmt.tm_sec);
//
//	printf("%d--%d\n",t,mktime(&tmt));
/*
	dLinkList *p_dll=initDLinkList();
	time_t a,b,c;
	a=b=c=getUTCNow();
	addDLinkListItem(p_dll,"testa",(void*)&a);
	addDLinkListItem(p_dll,"testb",(void*)&b);
	addDLinkListItem(p_dll,"testc",(void*)&c);

	delDLinkListWithKey(p_dll,"testa");
	delDLinkListWithKey(p_dll,"testc");

	delDLinkListWithKey(p_dll,"testb");

	freeDLinkList(p_dll,FALSE);*/
*/
	char str[] = "world";
	char *a;
	printf("%d\n",sizeof(str));

/*	char *a;
	a=(char *)malloc(sizeof(char)*128);

	printf("%d\n",sizeof(char));*/

    union{
          short s;
          char c[sizeof(short)];
     }un;
     un.s = 0x0102;
     if(sizeof(short) == 2){
           if(un.c[0] == 1 && un.c[1] == 2)
           printf("big-endian\n");
           else if(un.c[0] == 2 &&un.c[1] == 1)
           printf("little-endian\n%d\n",sizeof(int *));
           else
           printf("unkown");
     }
     spin_lock();

	return EXIT_SUCCESS;
}
